//
//  SaveTool.h
//  UI19_豆瓣练习
//
//  Created by dllo on 15/10/13.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, SaveToolType) {
    SaveToolSpecialNews,
    SaveToolPic,
    SaveToolNews,
};

@interface SaveTool : NSObject

// 用来判断文件夹是否存在,如果没有文件夹,就创建一个,如果有不作任何操作

+ (void)isHaveFolder:(SaveToolType)type;

+ (void)saveFileToPlist:(id)object type:(SaveToolType)type;

+ (void)cancleFileInPlist:(id)object type:(SaveToolType)type;

+ (BOOL)isHaveInFile:(id)object type:(SaveToolType)type;

+ (id)getFile:(id)object type:(SaveToolType)type;

@end
